ErrorLog directive


Purpose

The ErrorLog directive sets the file to which httpd will log errors it encounters. It currently logs the following error conditions:


Syntax

ErrorLog file

file is the name of the file to which errors will be logged. It is either a full pathname, or a partial pathname relative to ServerRoot.

Only one ErrorLog directive is allowed in the configuration file.


Default

If you do not specify an ErrorLog, httpd assumes:

ErrorLog logs/error.log


Examples

ErrorLog logs/errors

This logs errors to the file logs/errors in the ServerRoot directory.

ErrorLog /tmp/httpderr.log

This logs errors to the file /tmp/httpderr.log.

ErrorLog NUL:

This effectively turns off error logging, not recommended!.

Return to Server Configuration File Overview


Robert B. Denny <rdenny@netcom.com>